import http from './http';

export const course = (params) => http.get("/course", {params});

export const create = () => http.get('/course/create');

export const courseImage = (params) => http.get("/media/images", params);

export const updateImage = (params) => http.post("/media/image", params);

export const createCourse = (params) => http.post("/course", params);

export const courseCategory = (params) => http.get("/courseCategory", params);

export const courseComments = (params) => http.get("/course_comment", params);

export const deleteComments = (params) => http.post("/course_comment/delete", params);

export const video = (params) => http.get("/video", {params});

export const videoComment = (params) => http.get("/video_comment", params);

export const deleteVideoComment = (params) => http.post("/video_comment/delete", params);

export const courseCategoryCreate = () => http.get("/courseCategory/create");

export const createCourseCategory = (params) => http.post("/courseCategory", params);


